﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace QuickGet.Core.Models
{
    public class PageFilter
    {
        public int PageIndex { get; set; } = 0;
        public int PageSize { get; set; } = 0;

        protected virtual int internal_skipCount => (PageIndex - 1) * PageSize;

        [JsonIgnore]
        public int SkipCount => internal_skipCount >= 0 ? internal_skipCount : 0;
    }
}
